From: Alexandre Emsenhuber Date: Tue, 21 Aug 2012 19:18:13 +0000 (+0200) Subject: Hide deprecated warning for Revision::revText(). X-Git-Tag: 1.31.0-rc.0~22651^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=092449ee687df4bb5ed4883cf61e01f7855d5eff;p=lhc%2Fweb%2Fwiklou.git Hide deprecated warning for Revision::revText(). Otherwise the test fails when $wgDevelopmentWarnings is set to true because it emits a E_NOTICE. Change-Id: I0c407f04cae4285cc61f73ec0ecb7b6ada8cbe0b --- diff --git a/tests/phpunit/includes/RevisionStorageTest.php b/tests/phpunit/includes/RevisionStorageTest.php index 20199b203b..6d82d0c99b 100644 --- a/tests/phpunit/includes/RevisionStorageTest.php +++ b/tests/phpunit/includes/RevisionStorageTest.php @@ -213,6 +213,7 @@ class RevisionStorageTest extends MediaWikiTestCase { */ public function testRevText() { + $this->hideDeprecated( 'Revision::revText' ); $orig = $this->makeRevision( array( 'text' => 'hello hello rev.' ) ); $rev = Revision::newFromId( $orig->getId() );